<%@ page pageEncoding="UTF-8"%>
<%@ include file="/common/token.jsp"%>
<%
	// category 5为病情备忘分类，6为日程备忘分类
	Integer uid = token.getUid();
	Integer category = input.getInt("category", 5);
	List<Map> categorys = QBuilder.db("basedb").select("new map(id as id, name as name)").from("Label").where(new Where("hospital=", hospital).and("status=", STATUS_ENABLE).and("authorId=" + uid + " or authorId is null").and("category=", category)).query().getResultObj();
	msg.put("data", categorys);
	Tools.encryptPrint(out, msg);
%>
